package tests

import (
	"fmt"
	"intelligentgateway/src/entity"

	"google.golang.org/protobuf/proto"
)

func Decode() {
	msg := &entity.ABMSMsg{
		Id:      "ABMS-ID",
		Voltage: 56.8,
	}
	data, _ := proto.Marshal(msg)
	fmt.Println(len(data))

}
